import App from './App'

import uvUI from '@/uni_modules/uv-ui-tools'
import {Request} from '@/util/request.js'
import cookie from '@/util/cookie.js'
import tools from '@/util/tools.js'
import Web3 from '@/libs/eth_web3'
const web3 = new Web3()
// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	app.use(uvUI,{mpShare:true})
	app.use(uvUI);

	app.config.globalProperties.$web3 = web3
	app.config.globalProperties.$cookie = cookie
	app.config.globalProperties.$tools = tools
	Request(app)
	return {
		app
	}
}
// #endif
